package com.service;

import com.dto.FreeRoomDTO;
import com.dto.MeetingDTO;
import com.dto.MeetingViewDTO;
import com.dto.MyMeetingDTO;
import com.pojo.Meeting;

import java.util.Date;
import java.util.List;

public interface MeetingService {

    boolean addMeeting(Meeting meeting);

    List<MeetingDTO> getMeetingList(String status,
                                    int uid,
                                    int currentPageNo,
                                    int pageSize);

    List<MeetingDTO> getApprovalList(String status,
                                     int currentPageNo,
                                     int pageSize);

    List<MyMeetingDTO> getMeetingListByUid(Integer uid,
                                           int currentPageNo,
                                           int pageSize);

    MeetingViewDTO getMeetingById(Integer id);

    int getMeetingCount(String status,Integer uid);

    boolean updateMeeting(Meeting meeting);

    int deleteMeetingById(Integer id);

    int getApprovalCount(String status);

    int getMeetingCountByUid(Integer uid);

    /**
     * 获取空闲会议室列表
     * @param useDate
     * @return
     */
    List<FreeRoomDTO> findFreeRoom(Date useDate,Integer pageIndex);

    int getFreeRoomCount(Date useDate);


    boolean applySave(Meeting meeting,List<Integer> aids);
}
